<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>坯布发货</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.6.7/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.6.7/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.6.7/demo/demo.css">
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.6.7/themes/bootstrap/easyui.css">
    <script type="text/javascript" src="jquery-easyui-1.6.7/jquery.min.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.6.7/jquery.easyui.min.js"></script>

    <link href="css/WhiteFHmain.css" type="text/css" rel="stylesheet" >
    <script src="js/WhiteFHmain.js" type="text/javascript"></script>


</head>
<body>

<div class="d_main">

   <div id="tabs" class="easyui-tabs" style="width:100%;height:100%">

       <div title="扫码发货" data-options="tabWidth:100" style="padding:0px">

                <!--  TOP              -->
                <div class="d_detail01">
                    <table border="1" cellspacing="0" style="height: 60px;width: 100%">
                        <tr>
                            <td style="height: 30px;width: 25%">
                                <a id="BarCode" href="#" class="easyui-linkbutton" style="height: 100%;width: 100%"
                                   onclick="InputbarCode()"
                                   data-options="iconAlign:'bottom'">码单号</a>
                            </td>
                            <td style="height: 30px;width: 30%">
                                <input id="dh"  type="text" readonly unselectable="on" style="height:28px;width:100%">
                            </td>
                            <td style="height: 30px;width: 15%" align='center' valign="middle">客户</td>
                            <td style="height: 30px;width: 30%">
                                <input id="kh"  type="text" readonly unselectable="on" style="height:28px;width:100%">
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 30px;width: 20%" align='center' valign="middle">白坯规格</td>
                            <td style="height: 30px;width: 35%">
                                <input id="mf"  type="text" readonly unselectable="on" style="height:28px;width:100%">
                            </td>
                            <td style="height: 30px;width: 15%" align='center' valign="middle">品名</td>
                            <td style="height: 30px;width: 30%">
                                <input id="pm"  type="text" readonly unselectable="on" style="height:28px;width:100%">
                            </td>
                        </tr>

                    </table>

                </div>
                <!-- 报表 未发货数据   -->
                <div class="d_detail02">
                <table id="detai01" class="easyui-datagrid"  style="width:100%;height:100%;"
                       data-options="rownumbers:true,singleSelect:true,method:'get',remoteSort:false,
                       toolbar:'#tb',footer:'#ft',fit:true" >
                    <thead>
                    <tr>
                        <th  data-options="field:'B_GJ',width:100,align:'right',
                    formatter: function (value, row, index) {if (row != null) {return parseFloat(value).toFixed(1);}}">
                            重量</th>
                        <th  data-options="field:'B_AorB',width:100,align:'center'">A/B面</th>
                        <th  data-options="field:'b_ylgg',width:100,align:'center'">原料规格</th>
                        <th  data-options="field:'B_ItemID',width:100,align:'center',sortable:true,hidden:true">打卷主键</th>
                        <th  data-options="field:'B_ID',width:100,align:'center',sortable:true,hidden:true">计划主键</th>
                    </tr>
                    </thead>

                </table>
                </div>

                <!-- 操作按钮   -->
                <div class="d_detail05">
                    <table border="0" cellspacing="0"  style="height: 70px;width: 99%" bordercolor="#FDFFFF">
                        <tr>
                            <td colspan="3" style="height: 50px;">
                                <input class="tap01" id="close" type="button" value="已发末匹"
                                       style="background-color: #BBFFEE"
                                       onclick="deletelastP()">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="height: 30px">
                                <input class="tap01" id="sumNumber"  type="button" value="已发末匹"
                                       style="background-color: #77FFCC"
                                       onclick="getNoCarDetail()">
                            </td>
                        </tr>
                        <tr>
                            <td rowspan="2"  style="height: 65px;width: 45%">
                                <input class="tap01" type="button" value="确定"
                                       style="background-color: #FF0000"
                                       onclick="choiceFH()">
                            </td>
                            <td style="height: 22.5%;width: 22.5%">
                                <input class="tap01"  type="button" value="扫一扫"
                                       style="background-color: #FFAA33"
                                       onclick="">
                            </td>
                            <td rowspan="2" style="height: 22.5%;width: 22.5%">
                                <input class="tap01"  type="button" value="上车"
                                       style="background-color: #EE7700"
                                       onclick="getintocar()">
                            </td>
                        </tr>
                        <tr>
                            <td  >
                                <input class="tap01"  type="button" value="整单发货"
                                       style="background-color: #FFAA33"
                                       onclick="getintocarAll()">
                            </td>
                        </tr>
                    </table>
                </div>

       </div>
       <div title="已发汇总" data-options="tabWidth:100" style="padding:0px">

           <!-- 标签2的染厂 客户选择显示                -->
           <div class="tab02_top">
               <table border="1" cellspacing="0" style="height: 30px;width: 100%">
                   <tr>
                       <td style="height: 30px;width: 15%" align='center' valign="middle">染厂</td>
                       <td style="height: 30px;width: 35%">
                           <input id="rc"  type="text" readonly unselectable="on" style="height:28px;width:100%">
                       </td>
                       <td style="height: 30px;width: 15%" align='center' valign="middle">客户</td>
                       <td style="height: 30px;width: 35%">
                           <input id="kh02"  type="text" readonly unselectable="on" style="height:28px;width:100%">
                       </td>
                   </tr>
               </table>
           </div>

        <!-- 标签2的报表                -->
           <div class="tab02_1">
                <table id="detai02" class="easyui-datagrid"  style="width:100%;height:100%;"
                       data-options="rownumbers:true,singleSelect:true,method:'get',remoteSort:false,
                       toolbar:'#tb',footer:'#ft'" >
                    <thead>
                    <tr>
                        <th  data-options="field:'pinming',width:70,align:'center'">品名</th>
                        <th  data-options="field:'menfu',width:70,align:'center'">白坯规格</th>
                        <th  data-options="field:'ylgg',width:70,align:'center'">原料规格</th>
                        <th  data-options="field:'ps',width:60,align:'right'">发货匹数</th>

                        <th  data-options="field:'qty',width:80,align:'right',
                        formatter: function (value, row, index) {if (row != null) {return parseFloat(value).toFixed(1);}}">
                            发货重量</th>
                        <th  data-options="field:'xmbarcode',width:80,align:'center'">细码单号</th>
                        <th  data-options="field:'date',width:120,align:'center'">上车时间</th>
                        <th  data-options="field:'itemid',width:120,align:'center',hidden:true">明细表主键</th>

                    </tr>
                    </thead>

                </table>
           </div>
       <!-- 标签2的按钮          -->
           <div class="tab02_2">
               <table border="0" cellspacing="0" style="height: 100%;width: 99%">
                   <tr>
                       <td style="height: 65px;width: 25%">
                           <input class="tap02"  type="button" value="选染厂"
                                  style="background-color: #FFDD55"
                                  onclick="getDye()">

                       </td>
                       <td style="height: 65px;width: 25%">
                           <input class="tap02"  type="button" value="选客户"
                                  style="background-color: #FFBB66"
                                  onclick="getKH()">
                       </td>
                       <td style="height: 65px;width: 25%">
                           <input class="tap02" id="partcloseMa" type="button" value="并码"
                                  style="background-color: #FFA488"
                                  onclick="partcloseMa()">
                       </td>
                       <td style="height: 65px;width: 25%">
                           <input class="tap02"  type="button" value="删除"
                                  style="background-color: #FF8888"
                                  onclick="DeleteFHdetail()">
                       </td>

                   </tr>
                   <tr>
                       <td colspan="4" style="height: 65px;width: 100%">
                           <input class="tap02"  type="button" value="生成发货单"
                                  style="background-color: #EE7700"
                                  onclick="generateFHD()">
                       </td>
                   </tr>
               </table>

           </div>

       </div>
       <div title="发货单" data-options="tabWidth:100" style="padding:0px">
           <div class="tab03_top">
                <table id="detai03" class="easyui-datagrid"  style="width:100%;height:100%;"
                       data-options="rownumbers:true,singleSelect:true,method:'get',remoteSort:false,
                       toolbar:'#tb',footer:'#ft'" >
                    <thead data-options="frozen:true">
                    <tr>
                        <th  data-options="field:'client_name',width:70,align:'center',sortable:true">客户</th>
                        <th  data-options="field:'dye_name',width:70,align:'center',sortable:true">染厂</th>
                    </tr>
                    </thead>
                    <thead>
                    <tr>
                        <th  data-options="field:'qty',width:70,align:'right',sortable:true">重量</th>
                        <th  data-options="field:'ps',width:70,align:'right',sortable:true">匹数</th>
                        <th  data-options="field:'bill_code',width:100,align:'center',sortable:true">单据编号</th>
                        <th  data-options="field:'bill_date',width:150,align:'center',sortable:true">时间</th>
                        <th  data-options="field:'id',width:70,align:'center',sortable:true,hidden:true">发货主表主键</th>

                    </tr>
                    </thead>
                </table>
           </div>
           <div class="tab03_2">
               <table border="0" cellspacing="0" style="height: 60px;width: 99%">
                   <tr>
                       <td style="width: 50%">
                           <input class="tap03"  type="button" value="明细"
                                  style="background-color: #FFDD55"
                                  onclick="getFHDDetail()">
                       </td>
                       <td>
                           <input class="tap03"  type="button" value="删除"
                                  style="background-color: #FFBB66"
                                  onclick="deleteFHD()">
                       </td>
                   </tr>
               </table>
           </div>
           <div class="tab03_3">
               <table border="0" cellspacing="0" style="height: 40px;width: 99%">
                   <tr>
                       <td style="width: 33.3%">
                           <input class="tap03"  type="button" value="上一日"
                                  style="background-color: #FFAA33"
                                  onclick="Upday()">
                       </td>
                       <td style="width: 33.3%">
                           <input class="tap03"  type="button" value="下一日"
                                  style="background-color: #FF8800"
                                  onclick="nextday()">
                       </td>
                       <td style="width: 33.3%">
                           <input class="tap03"  type="button" value="本日"
                                  style="background-color: #EE7700"
                                  onclick="gettoday()">
                       </td>
                   </tr>
               </table>
           </div>
       </div>


   </div>

    <div id="A" class="easyui-window" title="数字键盘"
         style="width:300px;height:500px;padding:10px;"
         data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,closable:true">

        <table border="0" cellspacing="0" style="height: 100%;width: 100%">
            <tr>
                <td style="width: 33%;height: 10%;font-size: 18px;font-weight: 700;">录入值:</td>
                <td style="width: 33%;height: 10%" colspan="2">
                    <!--                    readonly unselectable="on"-->
                    <input id="XMbarcodetext" type="text"
                           style="height: 100%;width: 100%;font-size: 24px">
                </td>

            </tr>
            <tr>
                <td style="width: 33%;height: 20%">
                    <input onclick="getnumberStr(1)" type="button" style="height: 100%;width: 100% " value="1">
                </td>
                <td style="width: 33%;height: 20%">
                    <input onclick="getnumberStr(2)" type="button" style="height: 100%;width: 100% " value="2">
                </td>
                <td style="width: 33%;height: 20%">
                    <input onclick="getnumberStr(3)" type="button" style="height: 100%;width: 100% " value="3">
                </td>
            </tr>
            <tr>
                <td style="width: 33%;height: 20%">
                    <input onclick="getnumberStr(4)" type="button" style="height: 100%;width: 100% " value="4">
                </td>
                <td style="width: 33%;height: 20%">
                    <input onclick="getnumberStr(5)" type="button" style="height: 100%;width: 100% " value="5">
                </td>
                <td style="width: 33%;height: 20%">
                    <input onclick="getnumberStr(6)" type="button" style="height: 100%;width: 100% " value="6">
                </td>
            </tr>
            <tr>
                <td style="width: 33%;height: 20%">
                    <input onclick="getnumberStr(7)" type="button" style="height: 100%;width: 100% " value="7">
                </td>
                <td style="width: 33%;height: 20%">
                    <input onclick="getnumberStr(8)" type="button" style="height: 100%;width: 100% " value="8">
                </td>
                <td style="width: 33%;height: 20%">
                    <input onclick="getnumberStr(9)" type="button" style="height: 100%;width: 100% " value="9">
                </td>
            </tr>
            <tr>
                <td style="width: 33%;height: 20%">
                    <input onclick="getnumberStr(0)" type="button" style="height: 100%;width: 100% " value="0">
                </td>
                <td style="width: 33%;height: 20%">
                    <input onclick="cancel01()" type="button" style="height: 100%;width: 100% " value="取消">
                </td>
                <td style="width: 33%;height: 20%">
                    <input onclick="determine01()" type="button" style="height: 100%;width: 100% " value="确定">
                </td>
            </tr>

        </table>
    </div>
    <div id="C" class="easyui-window" title="客户选择"
         style="width:300px;height:500px;padding:10px;"
         data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,closable:true">
        <div class="clien01">
            <table id="detailClient" class="easyui-datagrid"  style="width:100%;height:100%;"
                   data-options="rownumbers:true,singleSelect:true,method:'get',remoteSort:false,
                           toolbar:'#tb',footer:'#ft'" >
                <thead>
                <tr>
                    <th  data-options="field:'b_ClientName',width:150,align:'center'">客户名称</th>
                </tr>
                </thead>

            </table>
        </div>
        <div class="clien02">
            <table border="0" cellspacing="0" style="height: 40px;width: 96%">
                <tr>
                    <td style="height: 40px;width: 50%">
                        <a  href="#" class="easyui-linkbutton" style="height: 100%;width: 100%"
                            onclick="CloseClientDetail()"
                            data-options="iconAlign:'bottom'">退出</a>
                    </td>
                    <td>
                        <a  href="#" class="easyui-linkbutton" style="height: 100%;width: 100%"
                            onclick="getClientname()"
                            data-options="iconAlign:'bottom'">选择</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div id="D" class="easyui-window" title="染厂选择"
         style="width:300px;height:500px;padding:10px;"
         data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,closable:true">
        <div class="clien01">
            <table id="dyeDetail" class="easyui-datagrid"  style="width:100%;height:100%;"
                   data-options="rownumbers:true,singleSelect:true,method:'get',remoteSort:false,
                           toolbar:'#tb',footer:'#ft'" >
                <thead>
                <tr>
                    <th  data-options="field:'dyename',width:150,align:'center'">染厂名称</th>
                </tr>
                </thead>

            </table>
        </div>
        <div class="clien02">
            <table border="0" cellspacing="0" style="height: 40px;width: 96%">
                <tr>
                    <td style="height: 40px;width: 50%">
                        <a  href="#" class="easyui-linkbutton" style="height: 100%;width: 100%"
                            onclick="CloseDyeDetail()"
                            data-options="iconAlign:'bottom'">退出</a>
                    </td>
                    <td>
                        <a  href="#" class="easyui-linkbutton" style="height: 100%;width: 100%"
                            onclick="getDyename()"
                            data-options="iconAlign:'bottom'">选择</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div id="E" class="easyui-window" title="选择明细"
         style="width:300px;height:520px;padding:10px;display: none;"
         data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,
         closable:true,maximized:true,closed:true">
        <div class="fhdetailE">
            <table id="intoCardetail" class="easyui-datagrid"  style="width:100%;height:100%;"
                   data-options="rownumbers:true,singleSelect:true,method:'get',remoteSort:false,
                           toolbar:'#tb',footer:'#ft'" >
                <thead>
                <tr>
                    <th  data-options="field:'qty',width:70,align:'right'">重量</th>
                    <th  data-options="field:'aorB',width:70,align:'center'">A/B面</th>
                    <th  data-options="field:'ylgg',width:70,align:'center'">原料规格</th>
                </tr>
                </thead>

            </table>
        </div>
        <div class="fhdetailE02">
            <table border="0" cellspacing="0" style="height: 40px;width: 98%">
                <tr>
                    <td style="height: 40px;width: 100%">
                        <a  href="#" class="easyui-linkbutton" style="height: 100%;width: 100%"
                            onclick="closeT()"
                            data-options="iconAlign:'bottom'">退出</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div id="F" class="easyui-window" title="发货单明细"
         style="width:300px;height:520px;padding:10px;"
         data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,
         closable:true,maximized:true,closed:true">

        <div class="fhdetailF">
            <table id="fhdetail" class="easyui-datagrid"  style="width:100%;height:100%;"
                   data-options="rownumbers:true,singleSelect:true,method:'get',remoteSort:false,
                           toolbar:'#tb',footer:'#ft'" >
                <thead>
                <tr>
                    <th  data-options="field:'pinMing',width:70,align:'center'">品名</th>
                    <th  data-options="field:'menFu',width:70,align:'center'">白坯规格</th>
                    <th  data-options="field:'ylgg',width:70,align:'center'">原料规格</th>
                    <th  data-options="field:'ps',width:50,align:'right'">匹数</th>
                    <th  data-options="field:'qty',width:70,align:'right'">重量</th>
                    <th  data-options="field:'xmbarCode',width:80,align:'center'">细码单号</th>
                    <th  data-options="field:'date',width:150,align:'center'">上车时间</th>
                    <th  data-options="field:'itemid',width:150,align:'center',hidden:true">明细主键</th>
                </tr>
                </thead>

            </table>
        </div>
        <div class="fhdetailF02">
            <table border="0" cellspacing="0" style="height: 40px;width: 98%">
                <tr>
                    <td style="height: 40px;width: 100%">
                        <a  href="#" class="easyui-linkbutton" style="height: 100%;width: 100%"
                            onclick="closeF()"
                            data-options="iconAlign:'bottom'">退出</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>

</div>


</body>
</html>